package demo05;

import java.util.ArrayList;
import java.util.Random;

public class Test01ArrayList {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < 6; i++) {
            list.add(new Random().nextInt(33) + 1);
        }
        for (int j = 0; j < list.size(); j++) {
            System.out.println(list.get(j));
        }
    }
}
